package com.fh.service.system.fund;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;

import com.fh.util.PageData;


@Service("fundService")
public class FundService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	//======================================================================================
	
	/*
	* 通过id获取数据
	*/
	public PageData findFundById(PageData pd)throws Exception{
		return (PageData)dao.findForObject("FundMapper.findFundById", pd);
	}
	
	
	
	/*
	* 保存
	*/
	public void saveFund(PageData pd)throws Exception{
		dao.save("FundMapper.saveFund", pd);
	}
	/*
	* 修改
	*/
	public void editFund(PageData pd)throws Exception{
		dao.update("FundMapper.editFund", pd);
	}
	/*
	* 删除
	*/
	public void deleteFund(PageData pd)throws Exception{
		dao.delete("FundMapper.deleteFund", pd);
	}
	/*
	* 批量删除
	
	public void deleteAllFund(String[] USER_IDS)throws Exception{
		dao.delete("FundMapper.deleteAllFund", USER_IDS);
	}*/
	/*
	*列表(全部)
	*/
	public List<PageData> listAllFund(Page page)throws Exception{
		return (List<PageData>) dao.findForList("FundMapper.listAllFund", page);
	}
	
	
	
	
}

